package cn.laowen.org.mapper;

import cn.laowen.basic.vo.ShopVo;
import cn.laowen.org.domain.Shop;
import cn.laowen.basic.mapper.BasicMapper;
import org.springframework.web.bind.annotation.RequestPart;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author laowen
 * @since 2022-06-12
 */
public interface ShopMapper extends BasicMapper<Shop> {

    //1.普通CRUD的方法通过继承公共mapper来实现

    //2.特殊的方法自己写
    Shop loadByName(String name);

    /**
     * 不同店铺审核状态数量
     * @return
     */
    List<ShopVo> loadEcharts();

    /**
     * 批量新增
     * @param shops
     */
    void bulkSave(List<Shop> shops);
}
